<%@ LANGUAGE="VBSCRIPT" %>
<%'  ------------------------------------------------------------
  '  searchbanner.asp
  '  ------------------------------------------------------------
  '  VCS INFO:
  '  
  '  $Revision:   1.14  $
  '  $Date:   19 May 1998 20:06:20  $
  '  $Author:   shsieh  $
  '  $Workfile:   searchbanner.asp  $
  '  ------------------------------------------------------------
  '  All Rights Reserved.  Copyright (c) 1988-1998 FileNET Corp.
  '  ------------------------------------------------------------
  '%>
<!-- #include file="JScriptFix.asp" -->

<%
'Panagon IDM Web application uses the Session variable LibraryLogonID to keep track of
'whether the user has logged on.
'Please see logoncall.asp to see how the Session variable LibraryLogonID is set.
IsLoggedOn = (Len(Session("LibraryLogonID")) > 0)
%>

<HTML>
<HEAD>
  <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac">
  <TITLE>Panagon IDM Search Banner</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff" BACKGROUND="images/grayban.jpg">

<SCRIPT LANGUAGE="JavaScript">
<!--
// This function is called when the View link on the banner is clicked.
function View()
{
// If there's a Query Result page, then submit selected documents to the View page.
// Otherwise, just simply go to the View page.
<%
if IsLoggedOn then 
	LibraryLogonID = Session("LibraryLogonID")
	Set LibraryObj = Server.CreateObject("IDMObjects.Library")
	LibraryObj.LogonId = LibraryLogonID
	if LibraryObj.SystemType = Application("idmSysTypeIS") then %>

	if (parent.frames[3].document.title == "Query Result" &&
		parent.frames[3].document.forms.length == 2)
		parent.frames[3].SubmitAction();
	else
		parent.location.href = "viewer.asp"

<%	else %>

	if (parent.frames[2].document.title == "Query Result" &&
		parent.frames[2].document.forms.length == 2)
		parent.frames[2].SubmitAction();
	else
		parent.location.href = "viewer.asp"

<%	end if 
end if %>
}
//-->
</SCRIPT>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD><IMG SRC="images/sanimate.gif" WIDTH="220" HEIGHT="80" ALIGN="BOTTOM" NATURALSIZEFLAG="3"></TD>
<td nowrap><font color="#000080" size="+2"><em><strong>&nbsp;&nbsp;(<%= Session("DocClassChineseName") %>)</strong></em></font> <!-- FDS 890731 -->
<TD WIDTH="515%" NOWRAP>
<P ALIGN=RIGHT>
<!--
<A HREF="browser.asp" TARGET="_top"><IMG SRC="images/browicon.gif" WIDTH="82" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
-->
<A HREF="javascript:View()"><IMG SRC="images/viewlink.gif" WIDTH="60" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
<%
'If the user is logged on to a Document Services library, then add the
'links to Add Document and Checked Out List pages.
if IsLoggedOn then 
	if LibraryObj.SystemType = Application("idmSysTypeIS") then %>
<A HREF="help/idmwebhelp.asp?HelpTopic=Search" TARGET="_top"><IMG SRC="images/help.gif" WIDTH="59" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
<%	else %>
<A HREF="adddoc.asp" TARGET="_top"><IMG SRC="images/adddoc.gif" WIDTH="63" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
<A HREF="checkedout.asp" TARGET="_top"><IMG SRC="images/checkot.gif" WIDTH="96" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
<A HREF="help/idmwebhelp.asp?HelpTopic=SearchDS" TARGET="_top"><IMG SRC="images/help.gif" WIDTH="59" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
<%	end if 
end if %>
<A HREF="home.asp" TARGET="_top"><IMG SRC="images/homelink.gif" WIDTH="68" HEIGHT="71" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0"></A>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
